class AddDescriptionHtmlToPhoto < ActiveRecord::Migration
  def self.up
    add_column :photos, :description_html, :text
    Photo.find(:all).each do |p|
      p.update_attributes!(:description => p.description)
    end
  end

  def self.down
    remove_column :photos, :description_html
  end
end
